package com.softline.documentsmall.service;

import com.softline.documentsmall.entity.DetailSubmitPageQueryVo;
import com.softline.documentsmall.entity.EntryDetailsSubmit;
import com.softline.documentsmall.ret.ReturnVO;

import java.util.List;

/**条目提交历史
 * @author zhongweicheng
 * @date 2020/9/4 16:26
 */

public interface EntryDetailsSubmitService {

    ReturnVO findByParams(EntryDetailsSubmit entryDetailsSubmit);

    ReturnVO insertEntryDetailsSubmit(List<EntryDetailsSubmit> entryDetailsSubmits);

    ReturnVO userUpdateById(EntryDetailsSubmit entryDetailsSubmit);

    ReturnVO adminUpdateById(EntryDetailsSubmit entryDetailsSubmit);

    ReturnVO softDeleteById(Integer id);

    boolean isApproveState(Integer id);

    EntryDetailsSubmit findByDictionaryIdLanguageTitle(Integer dictionaryId,String language,String title);

    EntryDetailsSubmit findById(Integer id);


    String editDictionaryBlock(EntryDetailsSubmit submit);

    String adminApproveSubmit(Integer id, Integer approveState, String userName, String userId, String reason);

    ReturnVO getDetailSubmitByPage(DetailSubmitPageQueryVo vo);


}
